{% extends "FOSUserBundle::layout.html.twig" %}

{% block content %}
{% if error %}
    <div>{{ error }}</div>
{% endif %}

<form action="{{ path("_security_check") }}" method="post">
    <label for="username">Username:</label>
    <input type="text" id="username" name="_username" value="{{ last_username }}" />

    <label for="password">Password:</label>
    <input type="password" id="password" name="_password" />

    <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
    <label for="remember_me">Remember Me</label>

    <input type="submit" name="login" />
</form>
<p>
    <a href="{{ path('fos_user_user_request_reset_password') }}">{% trans 'Forgotten password' from 'FOSUserBundle' %}</a>
</p>
{% endblock content %}
